package com.qdu.servlet;

import com.qdu.service.impl.LogRemarkServiceImpl;
import com.qdu.service.impl.LogServiceImpl;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *点赞
 * @author Lenovo
 */
@WebServlet("/grmals")
public class giveRemarkALikeServlet extends HttpServlet{
    
    LogRemarkServiceImpl logremarkserviceimpl=new LogRemarkServiceImpl();
    
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String remarkId=req.getParameter("remarkId");
        String id=req.getParameter("id");//获取日志编号
        int num=logremarkserviceimpl.modifyRemark(remarkId);
        
        resp.sendRedirect("solfm?logId="+id);
    }
    
}
